public void scriptFunction(arg) {
    println("groovy script1 invoke test : " + arg);
}

public Object invokeMethod_2(input) {
    def outputData = [:];

    outputData.putAll(input);

    Set keys = outputData.keySet();
    Iterator iter = keys.iterator();
    StringBuffer returnValue = new StringBuffer();
    while (iter.hasNext()) {
        String key = (String) iter.next();
        if (key != "Request" && key != "Response") {
            Object value = outputData.get(key);
            returnValue.append(value);
        }
    }

    return returnValue.toString();
}

public Object invokeMethod_5(params) {
    def inputData = [:];

    inputData.putAll(params);

    Set keys = inputData.keySet();
    Iterator iter = keys.iterator();
    StringBuffer keyValue = new StringBuffer();
    int totalValue = 0;
    while (iter.hasNext()) {
        String key = (String) iter.next();
        keyValue.append(key);
        Object value = inputData.get(key);
        totalValue += value;
    }

    def outputData = [keyValue.toString(), totalValue];

    return outputData;
}